<form method="post" autocomplete="off" action="home.php?mod=spacecp&ac=plugin&id=myrepeats:memcp&pluginop=add">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<p class="tbmu">{lang myrepeats:adduser}</p>
<table cellspacing="0" cellpadding="0" class="tfm" style="table-layout:fixed;margin-top:10px;">
<tbody>
	<tr><td class="mtm pns">
		<p>
		<!--{if !$singleprem}-->
			{lang myrepeats:username} <input name="usernamenew" type="text" class="px" value="$username" style="width:100px" tabindex="1" />&nbsp;
		<!--{else}-->
			{lang myrepeats:username} <select name="usernamenew">
			<!--{loop $permusers $user}-->
				<option value="$user"{if $user == $username} selected{/if}>$user</option>
			<!--{/loop}-->
			</select>
		<!--{/if}-->
		{lang myrepeats:password} <input name="passwordnew" type="password" class="px" style="width:100px" tabindex="2" />
		<select name="questionidnew" tabindex="3" onchange="if(this.value > 0) {$('answernew').style.display='';} else {$('answernew').style.display='none';}">
			<option value="0">{lang myrepeats:security_question}</option>
			<option value="1">{lang myrepeats:security_question_1}</option>
			<option value="2">{lang myrepeats:security_question_2}</option>
			<option value="3">{lang myrepeats:security_question_3}</option>
			<option value="4">{lang myrepeats:security_question_4}</option>
			<option value="5">{lang myrepeats:security_question_5}</option>
			<option value="6">{lang myrepeats:security_question_6}</option>
			<option value="7">{lang myrepeats:security_question_7}</option>
		</select>
		<span id="answernew" style="display:none">{lang myrepeats:security_answer} <input type="text" name="answernew" class="px" style="width:100px" class="txt" tabindex="4" /></span>
		<br /><br />
		<p>
		{lang myrepeats:comment} <input name="commentnew" class="px" type="text" size="40" tabindex="5" />&nbsp;
		<button type="submit" class="pn" name="adduser" value="yes" ><span>{lang myrepeats:add}</span></button>
		</p>
	</td></tr>
</tbody>
</table>
</form>
<form method="post" autocomplete="off" action="home.php?mod=spacecp&ac=plugin&id=myrepeats:memcp&pluginop=update">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<table cellspacing="0" cellpadding="0" class="tfm" style="table-layout:fixed;margin-top:10px;">
<thead class="alt">
	<tr><td width="40"></td><td>{lang myrepeats:username}</td><td width="300">{lang myrepeats:commentrow}</td><td>{lang myrepeats:lastswitch}</td></tr>
</thead>
<!--{if $repeatusers}-->
	<!--{loop $repeatusers $user}-->
	<tr>
		<td><input name="delete[]" type="checkbox" class="checkbox" value="$user[username]" /></td>
		<td><b><!--{if !$user[locked]}--><a href="plugin.php?id=myrepeats:switch&username=$user[usernameenc]&formhash={FORMHASH}">$user[username]</a></b><!--{else}-->$user[username] ({lang myrepeats:locked})<!--{/if}--></td>
		<td><input name="comment[{$user[username]}]" class="px" value="$user[comment]" size="40" /></td>
		<td><!--{if $user[lastswitch]}-->$user[lastswitch]<!--{else}-->{lang myrepeats:nouse}<!--{/if}--></td>
	</tr>
	<!--{/loop}-->
	<tr><td><input class="checkbox" type="checkbox" id="chkall" name="chkall" onclick="checkall(this.form);" /> <label for="chkall">{lang myrepeats:delete_check}</label></td>
	<td class="mtm pns"><button type="submit" class="pn" name="updateuser" value="yes" ><span>{lang submit}</span></button></td></tr>
<!--{/if}-->
</table>
</form>